package com.crm.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "sourcecompare")
public class Sourcecompare implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(generator="increment")
	@GenericGenerator(name="increment", strategy = "increment")
	private int id;
	
	@Column(name="enqnum")
	private int enqnum;

	@Column(name="prtnum")
	private int prtnum;
	
	@Column(name="ofrpartno")
	private String offeringPartNo;

	@Column(name="srcnum")
	private int srcnum;
	
	@Column(name="supplier")
	private int supplier;
	
	@Column(name="unitprice")
	private float unitprice;

	@ManyToOne
	@JoinColumn(name="BUSINESS_ID")
	private Business businessId;
	

	public Business getBusinessId() {
		return businessId;
	}


	public void setBusinessId(Business businessId) {
		this.businessId = businessId;
	}


	public Sourcecompare() {
		super();
	}

	
	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}


	public int getEnqnum() {
		return enqnum;
	}


	public void setEnqnum(int enqnum) {
		this.enqnum = enqnum;
	}


	public int getPrtnum() {
		return prtnum;
	}


	public void setPrtnum(int prtnum) {
		this.prtnum = prtnum;
	}


	


public String getOfferingPartNo() {
		return offeringPartNo;
	}


	public void setOfferingPartNo(String offeringPartNo) {
		this.offeringPartNo = offeringPartNo;
	}


	public int getSrcnum() {
		return srcnum;
	}


	public void setSrcnum(int srcnum) {
		this.srcnum = srcnum;
	}


	

	public int getSupplier() {
		return supplier;
	}


	public void setSupplier(int supplier) {
		this.supplier = supplier;
	}


	public float getUnitprice() {
		return unitprice;
	}


	public void setUnitprice(float unitprice) {
		this.unitprice = unitprice;
	}

	
	
}
